package com.ruoyi.ro.controller;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.ro.domain.goods;
import com.ruoyi.ro.service.IgoodsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 交易所抢购Controller
 * 
 * @author shan
 * @date 2022-05-23
 */
@Api("交易抢购")
@RestController
@RequestMapping("/xdroapi/trade")
public class goodsApiController extends BaseController
{
    @Autowired
    private IgoodsService goodsService;

    /**
     * 查询交易所抢购列表
     */
    @ApiOperation("抢购物品信息")
    @GetMapping("/list")
    public  TableDataInfo list()
    {
        goods goods=new goods();
        List<goods> list = goodsService.selectgoodsList(goods);
        return getDataTable(list);
    }

}
